<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%String path = request.getContextPath();%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>互动</title>
    <link href="<%=path%>/heatconfig/css/mui.min.css" rel="stylesheet" />
    <link href="<%=path%>/heatconfig/css/build.css" rel="stylesheet" type="text/css" />
    <link href="<%=path%>/heatconfig/css/order/css/style.css" rel="stylesheet" type="text/css" />
    <script src="<%=path%>/heatconfig/js/mui.min.js"></script>
    <script src="<%=path%>/heatconfig/js/jquery-3.5.1.min.js"></script>
    <script src="<%=path%>/heatconfig/css/order/js/banner.js"></script>
    <link rel="stylesheet" type="text/css" href="<%=path%>/heatconfig/layui-v2.5.6/layui/css/layui.css">
    <script type="text/javascript" src="<%=path%>/heatconfig/layui-v2.5.6/layui/layui.js"></script>
    <style type="text/css">
        .bor{
            width: 100%;
            height: 200px;

            margin-top: 200px;
            line-height: 200px;
            padding-left: 300px;
            font-size: 35px;

        }
        .user{
            float: left;
        }
        #sss{
         clear: both;
            margin-left: 450px;
            width: 600px;

        }
        #aaa{
            clear: both;


        }
        #ccc{

        }


    </style>
</head>
<body>
    <div id="sss">
    <div class="mui-content">
        <div class="mui-control-content mui-active hudong_box padding_0_15">
            <!-- 咨询建议 start -->
            <div class="consult_list">
                <div class="title flex-space-between flex-between-center">
                    <h2><a href="<%=path%>/workerMySe rvice">正在进行的订单</a></h2>
                    <h2><a href="<%=path%>/completedOrder?pageNum=1">已完成的订单</a></h2>
                    <a href="#">更多></a>
                </div>

                <div class="list_box">
                    <c:forEach items="${requestScope.repairOrders}" var="repairOrder" varStatus="status">

                    <div >

                        <h4>订单编号：${repairOrder.number}</h4>
                        <div class="box"class="list" style="border:1px #222222 solid">
                            <div class="mui-table-view-cell">
                                <div class="user">客户姓名：${repairOrder.userinfoName}</div><br>
                                <div class="user">联系电话：${repairOrder.userinfoPhoneNumber}</div><br>
                                <div class="user">地址：${repairOrder.adressId.completeAddress}</div><br>
                                <br>
                                预计上门时间:123213213213
                                <br>
                                <div style="float:right">状态：${repairOrder.orderStateId.state}</div>

                                <button onclick="chargeback('${repairOrder.id}')">退单</button>
                                <input type="hidden" value="${repairOrder.id}">

                            </div>

                        </div>
                    </div>
                    </c:forEach>

                </div>
            </div>
         </div>
            <!-- 常见问题 end -->

            <!-- 底部信息-->

        </div>


    <nav class="mui-bar mui-bar-tab tabbar-bottom" >
        <div id="aaa">

        <div id="ccc" class="mui-tab-item" onclick="window.location.href='index.html'">
            <span class="mui-icon"><img src="<%=path%>/heatconfig/images/nav_home.png" /></span>
            <span class="mui-tab-label">首页</span>
        </div>

        <a href="<%=path%>/getMyService">

        <div class="mui-tab-item mui-active"  href="<%=path%>/getMyService">
            <span class="mui-icon"><img src="<%=path%>/heatconfig/images/nav_hudong_on.png" /></span>
            <span class="mui-tab-label">我的维修</span>
        </div>
           </a>
        <div class="mui-tab-item"  >
            <span class="mui-icon"><img src="<%=path%>/heatconfig/images/nav_user.png" /></span>
            <span class="mui-tab-label"><a href="<%=path%>/getWorkerUser">我的</a></span>
        </div>
        </div>
    </nav>
</div>
    <div class="bor">


    </div>

    </div>
    <!-- 底部tabbar    end -->
    <script type="text/javascript">
        mui.init();

    </script>
</body>
<script>
    function chargeback(orderId){
        console.dir($(this))


        layui.use('layer', function() {
            var layer = layui.layer;

            //iframe层-父子操作
            updateFrame = layer.open({
                title: "退单",
                type: 2,

                scrollbar: false,	//默认：true,默认允许浏览器滚动，如果设定scrollbar: false，则屏蔽
                maxmin: true,
                content: '<%=path%>/workerchargeback?orderId='+orderId+'',
            });
        });

    }
</script>
</html>

